package mj.scott.back.paper.service.impl;

import lombok.extern.slf4j.Slf4j;
import mj.scott.back.paper.mapper.PaperMapper;
import mj.scott.back.paper.pojo.dto.PaperQuery;
import mj.scott.back.paper.pojo.vo.PaperVO;
import mj.scott.back.paper.service.PaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class PaperServiceImpl implements PaperService {
    @Autowired
    PaperMapper paperMapper;
    @Override
    public List<PaperVO> selectPaper(PaperQuery query) {
        log.debug("【业务层】【查询试卷列表】{}", query);
        List<PaperVO> vo = paperMapper.select(query);
        return vo;
    }
}
